Skip to content

chore: update playwright in ci to run only on aria changes #4452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

nmerget
Copy link
Collaborator

@nmerget nmerget commented Jul 1, 2025

Proposed changes

Types of changes

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improvements to existing components or architectural decisions)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Further comments

Copy link
Contributor

github-actions bot commented Jul 1, 2025

@nmerget nmerget marked this pull request as ready for review July 8, 2025 11:59
@nmerget nmerget requested a review from mfranzke as a code owner July 8, 2025 11:59
@nmerget nmerget enabled auto-merge (squash) July 8, 2025 12:00
@nmerget nmerget moved this to 👀 In review in UX Engineering Team Backlog Jul 8, 2025
@mfranzke mfranzke added the 🍄🆙improvement New feature or request label Jul 21, 2025
@mfranzke mfranzke requested a review from Copilot July 21, 2025 16:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the Playwright testing infrastructure to separate different types of accessibility tests and only run aria-related tests when aria changes are detected. The key changes include splitting consolidated test files into separate test suites by test type (visual snapshots, aria snapshots, axe-core, and a11y-checker) and updating CI workflows to run tests conditionally based on detected changes.

  • Separate test files by test type for better organization and selective execution
  • Update CI workflows to run aria-related tests only when aria changes are detected
  • Add new Playwright configuration files for different test types
  • Update package.json scripts across all showcases to support the new test structure

Reviewed Changes

Copilot reviewed 146 out of 151 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
showcases/*/package.json Add separate npm scripts for each test type (aria-snapshots, visual-snapshots, axe-core, a11y-checker)
showcases/playwright.*.ts New Playwright configuration files for different test types with specific test matching patterns
showcases/e2e//.spec.ts Split existing combined test files into separate files by test type
.github/workflows/*.yml Update CI workflows to run tests conditionally and use new test scripts
scripts/github/snapshot-changes/*.ts Add utility scripts to detect snapshot changes for conditional test execution

nmerget added 2 commits July 24, 2025 13:24
…if-aria-changed

# Conflicts:
#	.github/workflows/02-e2e-showcases.yml
#	__snapshots__/custom-select/showcase/webkit/DBCustomSelect-should-match-screenshot-1/DBCustomSelect-should-match-screenshot.png
#	package-lock.json
#	showcases/e2e/switch/switch-axe-core.spec.ts
#	showcases/e2e/tabs/tabs-axe-core.spec.ts
#	showcases/react-showcase/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍄🆙improvement New feature or request
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

2 participants